/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dvd.modeles;

import java.io.Serializable;

public class LignePanier implements Serializable{

    private Film film;
    private Integer quantite;

    public LignePanier() {
    }

    public LignePanier(Film film, Integer quantite) {
        this.film = film;
        this.quantite = quantite;
    }

    public Film getFilm() {
        return film;
    }

    public void setFilm(Film film) {
        this.film = film;
    }

    public Integer getQuantite() {
        return quantite;
    }

    public void setQuantite(Integer quantite) {
        this.quantite = quantite;
    }

    public void augmenterQuantite() {
        this.quantite++;
    }

    public void diminuerQuantite() {
        this.quantite--;
    }

    public double getPrix() {
        double total = 0.00;
        total = this.getQuantite()*this.getFilm().getPrix();
        return total;
    }
}
